<p-dialog header="选择关联工单" [(visible)]="display" modal="modal" [width]="width"  [responsive]="true" (onHide)="onHide()">
    <div class="content-section  GridDemo clearfixes">
        <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px">
            <div class="mysearch">
                <div class="ui-g">
                    <div >
                        <label for="">关联单号：</label>
                        <input type="text" pInputText  [(ngModel)]="searchObj.kid"/>
                    </div>
                    <div >
                        <label for="">标题：</label>
                        <p-dropdown [options]="allTypes" [(ngModel)]="searchObj.workorder_type"
                                    (onClick)="clickDropdown($event)"
                                    [style]="{'width':'80%'}"></p-dropdown>
                    </div>
                    <div >
                    </div>
                    <div>
                        <button pButton type="button"  label="查询" (click)="search()"></button>
                    </div>
                    <div>
                        <button pButton type="button"  label="清空" (click)="clearSearch()"></button>
                    </div>
                </div>
            </div>
            <p-dataTable [value]="scheduleDatas" [(selection)]="selectEquip" id="malfunctionTable" (onHide)="onHide()">
                <p-column selectionMode="multiple" ></p-column>-->
                <p-column field="sid" header="单号" [sortable]="true">
                    <ng-template let-data="rowData" pTemplate="operator">
                        <span (click)="onOperate(data)">{{data.sid}}</span>
                    </ng-template>
                </p-column>
                <p-column field="creator" header="工单类型" [sortable]="true">
                </p-column>
                <p-column field="title" header="标题" [sortable]="true"></p-column>
                <p-column field="status" header="状态" [sortable]="true"></p-column>
                <ng-template pTemplate="emptymessage">
                    当前没有数据
                </ng-template>
            </p-dataTable>
            <p-paginator rows="10" [totalRecords]="totalRecords" [rowsPerPageOptions]="[10,20,30]" (onPageChange)="paginate($event)"></p-paginator>
        </div>
    </div>
    <p-footer>
        <button type="button" pButton icon="fa-check"  label="确定" (click)="sure(false)" ></button>
        <button type="button" pButton icon="fa-close" (click)="cancel" label="取消"></button>
    </p-footer>
</p-dialog>




<!--<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="3"  (onPageChange)="paginate($event)"></p-paginator>-->